//
//  TiXViewController.m
//  day1
//
//  Created by 于跃隆 on 2020/4/7.
//  Copyright © 2020 于跃隆. All rights reserved.
//

#import "TiXViewController.h"
#import "tiXCollectionViewCell.h"

@interface TiXViewController ()<UITableViewDelegate , UITableViewDataSource , UICollectionViewDelegate,UICollectionViewDataSource>

//网格
@property(nonatomic,strong) UICollectionView * main_clv;
//存放网格内容数组
@property(nonatomic,copy) NSArray * titleArray;


//表格
@property (nonatomic , strong) UITableView *tableview;


@end

//网格注册静态字符串

static NSString *cellClvID = @"tiXCollectionViewCell";

@implementation TiXViewController


-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    
    self.navigationController.navigationBar.hidden = YES;
    
}

-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    self.navigationController.navigationBar.hidden = NO;
}
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self setNavContorlFrame];
    self.navigationController.navigationBar.hidden = NO;
}
-(void)setNavContorlFrame{
    //设置导航条颜色
        UIView *Jbview = [[UIView alloc] init];
        Jbview.userInteractionEnabled = YES;
    //    Jbview.frame = CGRectMake(0,KSCHEIGHT(-37),kSCRATIO(self.view.frame.size.width),KSCHEIGHT(75));

        CAGradientLayer *gl = [CAGradientLayer layer];
        gl.frame = CGRectMake(0,KSCHEIGHT(0),kSCRATIO(self.view.frame.size.width),KSCHEIGHT(82));
        gl.startPoint = CGPointMake(0, 0);
        gl.endPoint = CGPointMake(1, 1);
        gl.colors = @[(__bridge id)[UIColor colorWithRed:247/255.0 green:65/255.0 blue:91/255.0 alpha:1.0].CGColor,(__bridge id)[UIColor colorWithRed:251/255.0 green:171/255.0 blue:102/255.0 alpha:1.0].CGColor];
        gl.locations = @[@(0.0),@(1.0)];
        [Jbview.layer addSublayer:gl];
        
        [self.navigationController.navigationBar addSubview:Jbview];
        
        //返回button
        UIButton *backBtn = [[UIButton alloc] init];
        [backBtn setBackgroundImage:[UIImage imageNamed:@"backButton"] forState:UIControlStateNormal];
        [backBtn addTarget:self action:@selector(BackClick) forControlEvents:UIControlEventTouchUpInside];
        [Jbview addSubview:backBtn];
        
        //标题文字
        UILabel *navtitle = [[UILabel alloc] init];
        navtitle.text = @"提现";
        navtitle.textColor = [UIColor whiteColor];
        navtitle.font = kFONT(18);
        [Jbview addSubview:navtitle];
        
        [Jbview mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(KSCHEIGHT(-37));
            make.width.mas_equalTo(kSCRATIO(self.view.frame.size.width));
            make.height.mas_equalTo(KSCHEIGHT(82));
        }];
        [backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(Jbview.mas_left).mas_equalTo(kSCRATIO(20));
            make.bottom.mas_equalTo(Jbview.bottom).mas_equalTo(KSCHEIGHT(-15));
            make.width.mas_equalTo(kSCRATIO(10));
            make.height.mas_equalTo(KSCHEIGHT(18));
        }];
        [navtitle mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(Jbview);
            make.bottom.mas_equalTo(Jbview.bottom).mas_equalTo(KSCHEIGHT(-12));
            
        }];
    
    //完成button
    UIButton *tixSourceBtn = [[UIButton alloc] init];
    [tixSourceBtn addTarget:self action:@selector(tixSourceClick) forControlEvents:UIControlEventTouchUpInside];
            
    NSMutableAttributedString *tixSourcetitle = [[NSMutableAttributedString alloc] initWithString:@"提现记录"];
                    
    [tixSourceBtn setAttributedTitle:tixSourcetitle forState:UIControlStateNormal];
    [tixSourceBtn.titleLabel setFont:kFONT(15)];
    //此时如果设置字体颜色要这样
    [tixSourcetitle addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0]  range:NSMakeRange(0,[tixSourcetitle length])];
    [Jbview addSubview:tixSourceBtn];
    
    [tixSourceBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(Jbview.bottom).mas_equalTo(KSCHEIGHT(-8));
        make.right.mas_equalTo(kSCRATIO(-20));
    }];
    
}
//提现的点击事件
-(void)tixSourceClick{
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    UserModel *user = [UserModel sharedInstance:UserKey0];
//    if ([UtilTools isBlankString:user.token]) {
//        [[AppDelegate shareAppDelegate] setLoginViewController];
//    }
    
    
    //245 246 251
    self.view.backgroundColor = [UIColor colorWithRed:245/255.0 green:246/255.0 blue:251/255.0 alpha:1.0];
    
    _titleArray = @[@"¥20",@"¥30",@"¥50",@"¥80",@"¥100",@"¥200",@"¥1(新人专享)"];
    
    [self.view addSubview:self.tableview];
    
    
}
-(void)BackClick{
    [self.navigationController popViewControllerAnimated:NO];
}

-(UITableView *)tableview{
    if (!_tableview) {
        _tableview = [[UITableView alloc] initWithFrame:CGRectMake(0, KSCHEIGHT(0), self.view.frame.size.width, KSCHEIGHT(self.view.frame.size.height) - KSCHEIGHT(64)) style:UITableViewStyleGrouped];
        _tableview.delegate = self;
        _tableview.dataSource = self;
        _tableview.separatorStyle = UITableViewCellSeparatorStyleNone;
        _tableview.separatorColor = [UIColor clearColor];
        
        _tableview.backgroundColor = [UIColor colorWithRed:245/255.0 green:246/255.0 blue:251/255.0 alpha:1.0];
        
//        _tableview.scrollEnabled = NO;
        _tableview.sectionFooterHeight = KSCHEIGHT(0);
        _tableview.sectionHeaderHeight = KSCHEIGHT(0);
        
    }
    return _tableview;
}
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
    return nil;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    if (section == 0) {
        return KSCHEIGHT(20.0);
    }
    return  KSCHEIGHT(15.0);
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 4;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    if (!cell) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cell"];
    }
    cell.backgroundColor = [UIColor colorWithRed:245/255.0 green:246/255.0 blue:251/255.0 alpha:1.0];
    if (indexPath.section == 0) {
        tableView.rowHeight = KSCHEIGHT(130);
        //背景view
        UIView *bacView = [[UIView alloc] init];
        [bacView setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@""]]];
        bacView.backgroundColor = [UIColor redColor];
        ViewRadius(bacView, KSCHEIGHT(10));
        [cell addSubview:bacView];
        
        [bacView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(cell);
            make.width.mas_equalTo(kSCRATIO(350));
            make.height.mas_equalTo(KSCHEIGHT(130));
            
        }];
        
        //钱包余额label
        UILabel *JsLabel = [[UILabel alloc] init];
        JsLabel.text = @"钱包余额";
        JsLabel.textColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0];
        JsLabel.font = kFONT(kSCRATIO(18));
        [bacView addSubview:JsLabel];
        
        [JsLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(bacView);
            make.top.mas_equalTo(KSCHEIGHT(25));
        }];
        
        //余额label
        NSString *yueString = @"10";
        UILabel *yueLabel = [[UILabel alloc] init];
        yueLabel.text = [NSString stringWithFormat:@"%@元",yueString];
        yueLabel.textColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0];
        yueLabel.font = KMEDIUM(kSCRATIO(28));
        [bacView addSubview:yueLabel];
        
        [yueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(bacView);
            make.top.mas_equalTo(JsLabel.mas_bottom).mas_equalTo(KSCHEIGHT(5));
        }];
        
        
        
    }else if (indexPath.section == 1){
        tableView.rowHeight = KSCHEIGHT(210);
        //背景view
        UIView *whiteBacView = [[UIView alloc] init];
        whiteBacView.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0];
        ViewRadius(whiteBacView, KSCHEIGHT(10));
        [cell addSubview:whiteBacView];
        
        [whiteBacView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(cell);
            make.width.mas_equalTo(kSCRATIO(350));
            make.height.mas_equalTo(KSCHEIGHT(210));
            
        }];
        
        //提现金额label
        UILabel *txYueLabel = [[UILabel alloc] init];
        txYueLabel.text = @"提现金额";
        txYueLabel.textColor = [UIColor colorWithRed:248/255.0 green:80/255.0 blue:92/255.0 alpha:1.0];
        txYueLabel.font = KMEDIUM(kSCRATIO(20));
        [whiteBacView addSubview:txYueLabel];
        
        [txYueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(whiteBacView);
            make.top.mas_equalTo(KSCHEIGHT(5));
        }];
        
        [whiteBacView addSubview:self.main_clv];
        
    }else if (indexPath.section == 2){
        
        tableView.rowHeight = KSCHEIGHT(120);
        //背景view
        UIView *whiteBacView = [[UIView alloc] init];
        whiteBacView.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0];
        ViewRadius(whiteBacView, KSCHEIGHT(10));
        [cell addSubview:whiteBacView];
        
        [whiteBacView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(cell);
            make.width.mas_equalTo(kSCRATIO(350));
            make.height.mas_equalTo(KSCHEIGHT(120));
            
        }];
        
        //到账方式label
        UILabel *dzFLabel = [[UILabel alloc] init];
        dzFLabel.text = @"到账方式";
        dzFLabel.textColor = [UIColor colorWithRed:248/255.0 green:80/255.0 blue:92/255.0 alpha:1.0];
        dzFLabel.font = KMEDIUM(kSCRATIO(20));
        [whiteBacView addSubview:dzFLabel];
        
        [dzFLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(whiteBacView);
            make.top.mas_equalTo(KSCHEIGHT(5));
        }];
        
        
        //距离
//        CGFloat    space = 5;// 图片和文字的间距
//        NSString    * titleString = [NSString stringWithFormat:@"我是测试我是测"];
//        CGFloat    titleWidth = [titleString sizeWithAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14]}].width;
//        UIImage    * btnImage = [UIImage imageNamed:@"bang"];// 11*6
//        CGFloat    imageWidth = btnImage.size.width;
//
//        CGFloat    btnWidth = 200;// 按钮的宽度
//        if (titleWidth > btnWidth - imageWidth - space) {
//            titleWidth = btnWidth- imageWidth - space;
//        }
        
        //提现btn
        UIButton *txBtn = [[UIButton alloc] init];
        [txBtn setBackgroundColor:[UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0]];
        txBtn.layer.shadowColor = [UIColor colorWithRed:247/255.0 green:67/255.0 blue:91/255.0 alpha:0.2].CGColor;
        txBtn.layer.shadowOffset = CGSizeMake(0,3);
        txBtn.layer.shadowOpacity = 1;
        txBtn.layer.shadowRadius = 7;
        txBtn.layer.cornerRadius = kSCRATIO(20);
        txBtn.font = kFONT(15);
        
        
        [txBtn setTitle:@"添加新的银行卡" forState:UIControlStateNormal];
        [txBtn setImage:[UIImage imageNamed:@"中国农业银行"] forState:UIControlStateNormal];
        [txBtn setTitleColor:[UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0] forState:UIControlStateNormal];
        
        [txBtn setTitleEdgeInsets:UIEdgeInsetsMake(0, kSCRATIO(25), 0, kSCRATIO(0))];
        [txBtn setImageEdgeInsets:UIEdgeInsetsMake(kSCRATIO(10), kSCRATIO(10), kSCRATIO(10), kSCRATIO(10))];
//        [txBtn setTitleEdgeInsets:UIEdgeInsetsMake(0, -(imageWidth+space*0.5), 0, (imageWidth+space*0.5))];
        
//        [txBtn setImageEdgeInsets:UIEdgeInsetsMake(0, (titleWidth + space*0.5), 0, -(titleWidth + space*0.5))];
        
        [txBtn addTarget:self action:@selector(txBclick:) forControlEvents:UIControlEventTouchUpInside];
        
        [whiteBacView addSubview:txBtn];
        
        [txBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(whiteBacView);
            make.width.mas_equalTo(kSCRATIO(315));
            make.height.mas_equalTo(KSCHEIGHT(40));
            make.bottom.mas_equalTo(whiteBacView.mas_bottom).mas_equalTo(KSCHEIGHT(-20));
        }];
        
        
        
    }else if (indexPath.section == 3){
        tableView.rowHeight = KSCHEIGHT(300);
        
        //提交申请
        UIButton *tjSbtn1 = [UIButton buttonWithType:UIButtonTypeCustom];
        ViewRadius(tjSbtn1, KSCHEIGHT(20));
        tjSbtn1.backgroundColor = [UIColor colorWithRed:172/255.0 green:95/255.0 blue:251/255.0 alpha:1.0];
        tjSbtn1.layer.shadowColor = [UIColor colorWithRed:173/255.0 green:172/255.0 blue:172/255.0 alpha:0.14].CGColor;
        tjSbtn1.layer.shadowOffset = CGSizeMake(0,2);
        tjSbtn1.layer.shadowOpacity = 1;
        tjSbtn1.layer.shadowRadius = 4;
        
        CAGradientLayer *glT = [CAGradientLayer layer];
        glT.frame = CGRectMake(0,0,kSCRATIO(300),KSCHEIGHT(40));
        glT.startPoint = CGPointMake(0, 0);
        glT.endPoint = CGPointMake(1, 1);
        glT.colors = @[(__bridge id)[UIColor colorWithRed:247/255.0 green:65/255.0 blue:91/255.0 alpha:1.0].CGColor,(__bridge id)[UIColor colorWithRed:251/255.0 green:171/255.0 blue:102/255.0 alpha:1.0].CGColor];
        glT.locations = @[@(0.0),@(1.0)];
        

        [tjSbtn1.layer addSublayer:glT];
        [cell addSubview:tjSbtn1];
        
        
        [tjSbtn1 setTitle:@"提交申请" forState:UIControlStateNormal];
        tjSbtn1.titleLabel.font = MarkFont(15);
        [tjSbtn1 addTarget:self action:@selector(tjSdclick:) forControlEvents:UIControlEventTouchUpInside];
        [tjSbtn1 setTitleColor:kColorFromRGBHex(0xFFFFFF) forState:UIControlStateNormal];
        [tjSbtn1 mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(cell);
            make.top.mas_equalTo(cell.mas_top).mas_equalTo(KSCHEIGHT(5));
            make.width.mas_equalTo(kSCRATIO(300));
            make.height.mas_equalTo(KSCHEIGHT(40));
            
        }];
        
        
        //提示文字
        UILabel *tishilabel = [[UILabel alloc] init];
        tishilabel.frame = CGRectMake(30,631.5,260.5,74);
        tishilabel.numberOfLines = 0;
        [cell addSubview:tishilabel];
        
        NSMutableAttributedString *tishistring = [[NSMutableAttributedString alloc] initWithString:@"温馨提示\n1.1元提现秒到账；\n2.20元以上24小时内到账，可直接提现无需任务解锁；\n3.提现金额及状态可在右上角[提现记录]中查看；\n4.为保证账户安全，请先绑定银行卡，并确认收款信息无误.\n5.手机号码登录的用户,提现请先绑定微信" attributes:@{NSFontAttributeName: [UIFont fontWithName:@"PingFangSC-Regular" size: kSCRATIO(13)],NSForegroundColorAttributeName: [UIColor colorWithRed:153/255.0 green:153/255.0 blue:153/255.0 alpha:1.0]}];
        
        tishilabel.attributedText = tishistring;
        
        [tishilabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(kSCRATIO(30));
            make.top.mas_equalTo(tjSbtn1.mas_bottom).mas_equalTo(KSCHEIGHT(15));
            make.width.mas_equalTo(KSCHEIGHT(260));
//            make.height.mas_equalTo(KSCHEIGHT(74));
            
        }];
        
    }
    
    cell.accessoryType = UITableViewScrollPositionNone;
    
    
    
    
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}

//提现点击事件
-(void)txBclick:(UIButton *)btn{
    
}
//提交申请点击事件
-(void)tjSdclick:(UIButton *)btn{
    
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    
    
}
- (UICollectionView *)main_clv{
    if (!_main_clv) {
        UICollectionViewFlowLayout *layo = [[UICollectionViewFlowLayout alloc] init];
        
        layo.sectionInset = UIEdgeInsetsMake(KSCHEIGHT(10), kSCRATIO(20), KSCHEIGHT(20), kSCRATIO(20));
        layo.itemSize = CGSizeMake(kSCRATIO(90), KSCHEIGHT(40));
        layo.minimumLineSpacing = kSCRATIO(15);
        layo.minimumInteritemSpacing = KSCHEIGHT(10);
        _main_clv = [[UICollectionView alloc] initWithFrame:CGRectMake(kSCRATIO(0), KSCHEIGHT(40), kSCRATIO(350), KSCHEIGHT(170)) collectionViewLayout:layo];
        _main_clv.delegate = self;
        _main_clv.dataSource = self;
        _main_clv.backgroundColor = [UIColor clearColor];
        
        _main_clv.scrollEnabled = NO;
        
        [_main_clv registerClass:[tiXCollectionViewCell class] forCellWithReuseIdentifier:cellClvID];
        
    }
    return _main_clv;
}
-(NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{
    return 1;
}
-(NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
    return  self.titleArray.count;
}

-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
    tiXCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellClvID forIndexPath:indexPath];
    cell.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0];
    cell.layer.shadowColor = [UIColor colorWithRed:247/255.0 green:67/255.0 blue:91/255.0 alpha:0.2].CGColor;
    cell.layer.shadowOffset = CGSizeMake(0,3);
    cell.layer.shadowOpacity = 1;
    cell.layer.shadowRadius = KSCHEIGHT(7);
    cell.layer.cornerRadius = KSCHEIGHT(20);
    
    //默认选中
    NSIndexPath *indexPathR = [NSIndexPath indexPathForRow:0 inSection:0];
    [self collectionView:self.main_clv didSelectItemAtIndexPath:indexPathR];
    [self.main_clv selectItemAtIndexPath:indexPathR animated:NO scrollPosition:UICollectionViewScrollPositionNone];
    
    
    
    cell.titleLabel.text = _titleArray[indexPath.row];
    cell.titleLabel.textColor = [UIColor colorWithRed:248/255.0 green:80/255.0 blue:92/255.0 alpha:1.0];
    
    
    
    if (indexPath.row == 6) {
//        cell.size = CGSizeMake(300, 40);
//        cell.frame = CGRectMake(200, 0, 300, 40);
        [cell setFrame:CGRectMake(kSCRATIO(100), KSCHEIGHT(115), kSCRATIO(160), KSCHEIGHT(40))];
        
    }
    
    
    
    return cell;
}
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
    tiXCollectionViewCell *cell = (tiXCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
    
    cell.backgroundColor = [UIColor colorWithRed:248/255.0 green:80/255.0 blue:92/255.0 alpha:1.0];
    cell.titleLabel.text = _titleArray[indexPath.row];
    cell.titleLabel.textColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0];
    
}
- (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndexPath:(nonnull NSIndexPath *)indexPath
{
    tiXCollectionViewCell *cell = (tiXCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
    
    cell.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0];
    cell.titleLabel.text = _titleArray[indexPath.row];
    cell.titleLabel.textColor = [UIColor colorWithRed:248/255.0 green:80/255.0 blue:92/255.0 alpha:1.0];
}

//-(BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath
//{
//    if(_main_clv==false)
//    {
//       if( [collectionView cellForItemAtIndexPath:indexPath].selected)
//       {
//           [_main_clv deselectItemAtIndexPath:indexPath animated:NO];
//           [self collectionView:_main_clv didDeselectItemAtIndexPath:indexPath];
//            return false;
//       }
//    }
//    return true;
//}
// 长按的情况下要实现高亮状态下的颜色保持
//- (void)collectionView:(UICollectionView *)collectionView didHighlightItemAtIndexPath:(NSIndexPath *)indexPath{
//
//    UICollectionViewCell *cell = (UICollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
//
//    cell.backgroundColor = [UIColor redColor];
//}
//- (BOOL)collectionView:(UICollectionView *)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath *)indexPath{
//
//    return YES;
//}


@end
